import { show_loading, stop_loading } from "./ditto";
import { isinitialized } from "./isinitialized";
//@ts-ignore
//@ts-ignore
import { states } from "./states";

export default async function init_sidebar_section() {
    if (isinitialized(states)) {
        return;
    }
    show_loading();
    if (!process.env.PRERENDER) {
        const { default: csrinitialize } = await import("./csrinitialize");
        await csrinitialize();
    }
    stop_loading();
}
